package org.jeecg.modules.wms.entity;

import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 出库分配方案
 */
@Data
@TableName("wms_outbound_allocation_plan")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "wms_outbound_allocation_plan对象", description = "出库分配方案")
public class WmsOutboundAllocationPlan implements Serializable {
    private static final long serialVersionUID = 1L;
    
    /**
     * ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "ID")
    private String id;
    
    /**
     * 出库单ID
     */
    @ApiModelProperty(value = "出库单ID")
    private String outboundId;
    
    /**
     * 出库单号
     */
    @ApiModelProperty(value = "出库单号")
    private String outboundNo;
    
    /**
     * 物料编码
     */
    @ApiModelProperty(value = "物料编码")
    private String materialCode;
    
    /**
     * 物料名称
     */
    @ApiModelProperty(value = "物料名称")
    private String materialName;
    
    /**
     * 物料类型
     */
    @ApiModelProperty(value = "物料类型")
    private Integer materialType;
    
    /**
     * 规格
     */
    @ApiModelProperty(value = "规格")
    private String specification;
    
    /**
     * 颜色
     */
    @ApiModelProperty(value = "颜色")
    private String color;
    
    /**
     * 单位
     */
    @ApiModelProperty(value = "单位")
    private String unit;
    
    /**
     * 需求数量
     */
    @ApiModelProperty(value = "需求数量")
    private BigDecimal requiredQuantity;
    
    /**
     * 仓库ID
     */
    @ApiModelProperty(value = "仓库ID")
    private String warehouseId;
    
    /**
     * 仓库名称
     */
    @TableField(exist = false)
    private String warehouseName;
    
    /**
     * 库位ID
     */
    @ApiModelProperty(value = "库位ID")
    private String locationId;
    
    /**
     * 库位名称
     */
    @TableField(exist = false)
    private String locationName;
    
    /**
     * 分配数量
     */
    @ApiModelProperty(value = "分配数量")
    private BigDecimal allocationQuantity;
    
    /**
     * 库存ID
     */
    @ApiModelProperty(value = "库存ID")
    private String inventoryId;
    
    /**
     * 可用库存数量
     */
    @ApiModelProperty(value = "可用库存数量")
    private BigDecimal availableQuantity;
    
    /**
     * 批次号
     */
    @ApiModelProperty(value = "批次号")
    private String batchNo;
    
    /**
     * 分配状态（0-待分配，1-已分配，2-部分分配）
     */
    @ApiModelProperty(value = "分配状态")
    private Integer allocationStatus;
    
    /**
     * 是否满足需求
     */
    @ApiModelProperty(value = "是否满足需求")
    private Boolean isSufficient;
    
    /**
     * 分配优先级
     */
    @ApiModelProperty(value = "分配优先级")
    private Integer priority;
    
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;
    
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    
    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    
    /**
     * 租户ID
     */
    @ApiModelProperty(value = "租户ID")
    private Integer tenantId;

    /**
     * 出库状态 0未出库 1已出库
     */
    @ApiModelProperty(value = "出库状态")
    private Integer status;

    /**
     * 实际出库数量
     */
    @ApiModelProperty(value = "实际出库数量")
    private BigDecimal actualQuantity;

    /**
     * 出库时间
     */
    @ApiModelProperty(value = "出库时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date outboundTime;
}
